<?php
class provinsi extends Base_model
{
	function __construct()
	{
		parent::__construct();
		$this->init("provinsi","id_provinsi","nama_provinsi");				
		
		$this->load->model("kabupaten"); //kabupaten atau kotamadya
		$this->kecamatan = $this->kabupaten->kecamatan;
	}
	
	function get_by_name($name)
	{
		$this->add_filter("nama_provinsi",$name);
		$rec = $this->get_all();
		return $rec;
	}
}
?>